package my.edu.model.bills.bound.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("other_outbound_order_detail")
public class OtherOutboundOrderDetail {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long otherOutboundOrderId;
    private Long productId;
    private String productNo;

    private String productName;
    private String productCategory;
    private String brand;
    private String productAttributes;
    private String unit;
    private Integer quantity;
    private Integer wholePackage;
    private Long warehouseId;
    private String warehouseName;
    private Integer availableStock;
    private BigDecimal outboundPrice;
    private BigDecimal outboundAmount;
    private String remark;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.UPDATE)
    private Long updatedBy;
}